package cn.hk.orderqueryu.service;

import cn.hk.orderqueryu.mapper.QueryUserMapper;
import cn.hk.orderqueryu.user.UserView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QueryUserService {
    @Autowired(required = false)
    private QueryUserMapper queryUserMapper;


    public List<UserView> queryUserOrders(String uId) {
        return queryUserMapper.selectOrdersByUserid(uId);
    }
}



